//
//  ZCXOurViewController.m
//  LoveOfPet
//
//  Created by dllo on 15/11/20.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import "ZCXOurViewController.h"
#define HEIGHT  [[UIScreen mainScreen]bounds].size.height / 667
#define WIDTH   [[UIScreen mainScreen]bounds].size.width / 375
@interface ZCXOurViewController ()

@end

@implementation ZCXOurViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIImageView *imagev = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    imagev.image = [UIImage imageNamed:@"Z2.jpg"];
    imagev.alpha = 0.5;
    [self.view addSubview:imagev];
    [imagev release];
    
    UIImageView *imageLo = [[UIImageView alloc]initWithFrame:CGRectMake(imagev.frame.size.width / 2 - 50, 60, 100, 100)];
    imageLo.image = [UIImage imageNamed:@"iconiPhoneApp_60pt@3x"];
    imageLo.layer.masksToBounds = YES;
    imageLo.layer.cornerRadius = 10;
    [imagev addSubview:imageLo];
    [imageLo release];
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(5 * WIDTH, 24 * HEIGHT, 40 * WIDTH, 40 * HEIGHT);
    [button setImage:[UIImage imageNamed:@"Zfanhui2"] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(backAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    
    UILabel *contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(20 * WIDTH, 150 * HEIGHT, self.view.frame.size.width - 40 * WIDTH, self.view.frame.size.height - 330 * HEIGHT)];
    contentLabel.backgroundColor = [UIColor clearColor];
    contentLabel.lineBreakMode = NSLineBreakByCharWrapping;
    contentLabel.numberOfLines = 0;
    contentLabel.text = @"    “爱宠”是基于图片、视频、宠物急诊等的宠物社交平台, 为各位宠物爱好者提供了中国最真实的、最好玩的、最便利的宠物社交App应用.\n\n   通过 “爱宠” 宠用可以找到和宠物病有关的知识和宠物医院、 和宠物有关的成长、 还有宠物的视频、 宠物的搞笑图片.\n\n   每一天, “爱宠”都在变化, 期待成长的历程中有你的更好的意见、建议和想法";
    contentLabel.textColor = [UIColor grayColor];
    [self.view addSubview:contentLabel];
    [contentLabel release];
}
- (void)backAction:(UIButton *)button{
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
